// user相关api
// 获取用户手机号
async function getPhoneNumber(code) {
	return await uni.$request.post('/wxApi/getPhoneNumber', {
	// return await uni.$request.post('/doctorApi/getPhoneNumber', {
		jsCode: code
	});
}
// 拿微信openid
async function getOpenId(code) {
	return await uni.$request.post('/wxApi/getOpenId', {
		jsCode: code
	});
}
// 微信openid绑定用户
async function bindAccount(openid) {
	return await uni.$request.post('/doctorApi/bindAccount', {
		'weixinOpenid': openid
	});
}
// 获取登录用户的信息
async function getUserinfo() {
	return await uni.$request.get('/doctorApi/info',{});
}
export {
	getPhoneNumber,
	phoneLogin,
	getOpenId,
	bindAccount,
	getUserinfo,
};